<?php

class Application_Form_Modifiermodele extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    	
    	
    	$this->setName("Formulairemodofiermodele");
    	 
    	$plate = new Application_Model_Mapper_PilotPlateforme();
    	
    	$select=$plate->fetchAllToArray();
    	 
    	$tmp=array();
    	$tmp['selectionner une donn�e']="plate";
    	foreach ($select as $key => $value ){
    		$tmp[ $value['idPILOT_PLATEFORME'] ] = $value['LABEL'];
    		 
    	}
    	 
    	$option_values = array("multiOptions" => $tmp);
    	$plateforme = new Zend_Form_Element_Select('PILOT_PLATEFORME_idPILOT_PLATEFORME', $option_values);
    	$plateforme->setLabel('Plateforme') ;
    	
    	$identificateur = new Zend_Form_Element_Hidden('idPILOT_MODELANALYSE');
    	$identificateur->setLabel('');
    	
    	$nomclient = new Zend_Form_Element_Text('NOMMODEL');
    	$nomclient->setLabel('Nom modele');
    	
    	
    	
    	$url = $this->CreateElement('textarea', 'XMTTEXT');
    	$url->setAttrib('rows', '7');
    	$url->setAttrib('cols', '35');
    	$url->setLabel('description');
    	
    	
    	
    	
    	$valider = new Zend_Form_Element_Submit("submit");
    	$valider->setLabel("Modifier");
    	
    	
    	$this->addElements(array($nomclient,$identificateur,$url,$plateforme,$valider));
    	$this->setDecorators( array( array('ViewScript', array('viewScript' => 'protypeform.phtml'))));
    	
    }


}

